<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label">项目分类</label>
            <div class="layui-input-block">
                <select name="type_id" lay-verify="required" data-select="{:url('project.cate/index')}" data-fields="id,title">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input" lay-verify="required" placeholder="请输入标题" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">需求情况</label>
            <div class="layui-input-block">
                <textarea name="describe" class="layui-textarea" placeholder="请输入需求情况" ></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label ">图片</label>
            <div class="layui-input-block layuimini-upload">
                <input name="images" class="layui-input layui-col-xs6"   placeholder="请上传图片 以 | 做分割符号" value="">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="images" data-upload-number="more" data-upload-exts="png|jpg|ico|jpeg" data-upload-icon="image" data-upload-sign="|"><i class="fa fa-upload"></i> 上传</a></span>
                    <span><a class="layui-btn layui-btn-normal" id="select_images" data-upload-select="images" data-upload-number="more" data-upload-mimetype="image/*" data-upload-sign="|"><i class="fa fa-list"></i> 选择</a></span>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">村名</label>
            <div class="layui-input-block">
                <select name="village_id" lay-verify="required" data-select="{:url('system.village/index')}" data-fields="id,name">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">需求联系人</label>
            <div class="layui-input-block">
                <input type="text" name="contact" class="layui-input"  placeholder="请输入需求联系人" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联系电话</label>
            <div class="layui-input-block">
                <input type="text" name="mobile" class="layui-input"  placeholder="请输入联系电话" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">详细地址</label>
            <div class="layui-input-block">
                <input type="text" name="address" class="layui-input"  placeholder="请输入详细地址" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">点赞量</label>
            <div class="layui-input-block">
                <input type="text" name="likes" class="layui-input"  placeholder="请输入点赞量" value="0">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">浏览量</label>
            <div class="layui-input-block">
                <input type="text" name="hits" class="layui-input"  placeholder="请输入浏览量" value="0">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">审批状态</label>
            <div class="layui-input-block">
                <select name="approve_status" lay-verify="required" >
                    <option value="">请选择审批状态</option>
                    {foreach $approveStatus as $k=>$v}
                    <option value='{$k}' >{$v}</option>
                    {/foreach}
                </select>

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="number" name="sort" class="layui-input" lay-affix="number"  placeholder="请输入排序" value="0">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">推荐状态</label>
            <div class="layui-input-block">
                <input type="radio" name="is_recommend" value="1" title="不推荐" >
                <input type="radio" name="is_recommend" value="2" title="推荐" checked></input>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">项目状态</label>
            <div class="layui-input-block">
                <select name="project_status" lay-verify="required" >
                    <option value="">请选择项目状态</option>
                    {foreach $projectStatus as $k=>$v}
                    <option value='{$k}' >{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注说明</label>
            <div class="layui-input-block">
                <textarea name="remark" class="layui-textarea"  placeholder="请输入备注说明"></textarea>
            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>
    </form>
</div>